package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by zhuyakun on 2017/11/15.
 */

public class CategoryAllRequest {
    Integer type;

    private CategoryAllRequest(Builder builder) {
        setType(builder.type);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }


    public static final class Builder {
        private Integer type;

        private Builder() {
            type = null;
        }

        public Builder type(Integer type) {
            this.type = type;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().categoryAll(new CategoryAllRequest(this));
        }
    }
}
